<div id="sidebar">
    <div class="inner">

        <!-- Nav - partials/navigation.hbs  -->
        <nav id="menu">
            <header class="major">
                <h2>Menu</h2>
            </header>
            <ul class="links">
                {% if navigation %}
                {% for cate in navigation %}
                {% if cate.parentId == '0' %}
                {% if cateInfo._id == cate._id %}
                {% set navClass = 'active'%}
                {% else %}
                {% set navClass = ''%}
                {% endif %}
                <li class="{{navClass}}"><a href="{{cate.url}}">{{cate.name}}&nbsp;({{cate.postCount}})</a></li>
                {% endif %}
                {% endfor %}
                {% endif %}
            </ul>
        </nav>


        <!-- Recent posts  -->
        <section>
            <header class="major">
                <h2>Recent Posts</h2>
            </header>
            <div class="mini-posts">

                {% news key="mini_post","pageSize"=3 %}
                {% for item in mini_post %}
                <article>
                    <h3><a href="{{item.url}}">{{item.title}}</a></h3>
                    <p>{{item.discription}}</p>
                </article>
                {% endfor %}

            </div>
        </section>

        <!-- Contact  -->
        {% recommend key="contact",pageSize=2 %}
        {% if contact %}
        {% for item in contact %}
        <section>
            <header class="major">
                <h2>{{item.stitle}}</h2>
            </header>
            {{item.discription}}
        </section>
        {% endfor %}{% endif %}


        <!-- Footer  -->
        {% include "./footer.html" %}

    </div>
</div>